<extend name="Public/base"/>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <div class="tab-wrap">
        <ul class="tab-nav nav">
            <li <eq name="typeid" value="1">class="current"</eq>><a href="{:U('edit', array('typeid' => 1, 'id' => $id))}">商品基础信息</a></li>
            <if condition="$id gt 0">
               <!--  <li <eq name="typeid" value="2">class="current"</eq>><a href="{:U('edit', array('typeid' => 2, 'id' => $id))}">颜色设置</a></li>
                <li <eq name="typeid" value="3">class="current"</eq>><a href="{:U('edit', array('typeid' => 3, 'id' => $id))}">尺寸设置</a></li> -->
                <li <eq name="typeid" value="4">class="current"</eq>><a href="{:U('edit', array('typeid' => 4, 'id' => $id))}">相册设置</a></li>
                <li <eq name="typeid" value="5">class="current"</eq>><a href="{:U('edit', array('typeid' => 5, 'id' => $id))}">商品介绍</a></li>
            </if>
        </ul>
        <div class="tab-content">
            <switch name="typeid">
                <case value="1">
                    <include file="Goods/goods_info"/>
                </case>
                <case value="2">
                    <include file="Goods/color"/>
                </case>
                <case value="3">
                    <include file="Goods/size"/>
                </case>
                <case value="4">
                    <include file="Goods/album"/>
                </case>
                <case value="5">
                    <include file="Goods/info"/>
                </case>
            </switch>
        </div>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Goods/index')}');
    </script>
</block>

